The Zooming Method: A Recursive Approach to Time-Space Efficient String-Matching
نویسندگان
چکیده
A new approach to time-space eecient string-matching is presented. The method is exible, its implementation depends whether or not the alphabet is linearly ordered. The only known linear-time constant-space algorithm for string-matching over nonordered alphabets is the Galil-Seiferas algorithm, see 8, 6] which is rather complicated. The zooming method gives probably the simplest string-matching algorithm working in constant space and linear time for nonordered alphabets. The novel feature of our algorithm is the application of the searching phase (which is usually simpler than preprocessing) in the preprocessing phase. The preprocessing has a recursive structure similar to selection in linear time, see 1]. For ordered alphabets the preprocessing part is much simpler, its basic component is a simple and well-known algorithm for nding the maximal suux, see 7]. Hence we demonstrate a new application of this algorithm, see also 5]. The idea of the zooming method was applied in 4] to two dimensional patterns.
منابع مشابه
Distance Dependent Localization Approach in Oil Reservoir History Matching: A Comparative Study
To perform any economic management of a petroleum reservoir in real time, a predictable and/or updateable model of reservoir along with uncertainty estimation ability is required. One relatively recent method is a sequential Monte Carlo implementation of the Kalman filter: the Ensemble Kalman Filter (EnKF). The EnKF not only estimate uncertain parameters but also provide a recursive estimat...
متن کاملRecursive Shift Indexing: A Fast Multi-Pattern String Matching Algorithm
String matching algorithms are essential for network devices that filter packets and flows based on their payload. Applications like intrusion detection/prevention, web filtering, anti-virus, and anti-spam all raise the demand for efficient algorithms dealing with string matching. This paper presents a novel multi-pattern string matching algorithm which reduces character comparisons based on re...
متن کاملبزرگنمایی تصویر با استفاده از تقریب بهترین صفحه
Image zooming is one of the existing issues discussed in image processing in which the person is interested in enlarging a certain picture and fitting it into the visible area of the display devices. In zooming activities it is necessary that extra pixels be inserted in the information image. The addition of the image data should be suitable with the texture of the image without producing artif...
متن کاملNew and Efficient Recursive-based String Matching Algorithm (RSMA-FLFC)
The need for simple and efficient string matching algorithms is essential for many applications, and especially for database query. In this paper, two major algorithms are proposed, namely first least frequency character algorithm (FLFC) and recursive-based string matching algorithm (RSMA). FLFC is considered as an enhanced version of scan for lowest frequency character SLFC proposed by Horspoo...
متن کاملTuning Shape Parameter of Radial Basis Functions in Zooming Images using Genetic Algorithm
Image zooming is one of the current issues of image processing where maintaining the quality and structure of the zoomed image is important. To zoom an image, it is necessary that the extra pixels be placed in the data of the image. Adding the data to the image must be consistent with the texture in the image and not to create artificial blocks. In this study, the required pixels are estimated ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Theor. Comput. Sci.
دوره 147 شماره
صفحات -
تاریخ انتشار 1995